#include<bits/stdc++.h>
using namespace std;
long long a[100001],ans,b[100001];
int main(){
    long long n,s=0;
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin>>n;
    for(int i=1;i<=n;i++){
        int k;
        cin>>k;
        a[k]++;
    }
    int j=1;
    for(int i=1;i<=n;i++){
        if(a[i]>0){
            b[j]=a[i];
            j=j+1;
        }
    }

    for(int i=2;i<=j;i++){
        if(b[i-1]<=b[i]){
            b[i-1]=0;
        }else if(b[i-1]>b[i]){
            b[i]=b[i-1];
            b[i-1]=0;
        }
    }
    cout<<b[j]<<endl;
    return 0;
}
